Skip to content

Fernet RNG should not return empty string - #745

Open
Deydra71 wants to merge 1 commit into
openstack-k8s-operators:mainfrom
Deydra71:OSPRH-33697-fernet-rng-error
Open

Fernet RNG should not return empty string#745
Deydra71 wants to merge 1 commit into
openstack-k8s-operators:mainfrom
Deydra71:OSPRH-33697-fernet-rng-error

Conversation

@Deydra71

@Deydra71 Deydra71 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

GenerateFernetKey logged RNG failure then returned "". Callers stored that into the Fernet/credential Secret. Change the API to (string, error). On rand.Read failure, return a wrapped error. ensureFernetKeys propagates it so reconcile fails and retries instead of writing bad secrets.

GenerateFernetKey logged RNG failure then returned "". Callers stored that into the Fernet/credential Secret.
Change the API to (string, error). On rand.Read failure, return a wrapped error. ensureFernetKeys propagates it
so reconcile fails and retries instead of writing bad secrets.

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
@Deydra71
Deydra71 requested review from afaranha, stuggi and xek August 3, 2026 08:43
@openshift-ci
openshift-ci Bot requested a review from dmendiza August 3, 2026 08:43
@openshift-ci

openshift-ci Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Deydra71

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved label Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant